package edu.java.homework.hw03.introJava14;


/**
 * Realization of the concept for inner classes
 * @author Tsvetan Vasilev
 *
 */
public class OuterClass {
    String name=null;
    static String staticName="concrete";
    
    OuterClass(String name){
	this.name=name;
    }
    
   static class InnerClass2{
	static String name="inner2";

	static void printNames(){
	    System.out.println("Inner name: "+ name);
	    System.out.println("Outer name: "+OuterClass.staticName);
	}
    }
  
    void printNameInnerClass2(){
	InnerClass2.printNames();
    }
    
    public static void main(String[] args) {

	OuterClass myOuter= new OuterClass("myOuter");
	myOuter.printNameInnerClass2();
	

    }

}
